<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${qrCode.id}" type="hidden" />
                <input id="shopId" name="shopId" th:value="${qrCode.shopId}" type="hidden" />

                <div class="layui-form-item">
                    <label class="layui-form-label">筒仓位置名称</label>
                    <div class="layui-input-block">
                        <input id="qrName" name="qrName" th:value="${qrCode.qrName}" class="layui-input" type="text" />
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">物料类型</label>
                    <div class="layui-input-block">
                        <input id="feedType" name="feedType" th:value="${qrCode.feedType}" class="layui-input" type="text" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">进出类型</label>
                    <div class="layui-input-block">
                        <select name="codeType" id="codeType">
                            <option value="">请选择设备类型</option>
                            <option value="0" th:selected="${qrCode.codeType == 0}">出口</option>
                            <option value="1" th:selected="${qrCode.codeType == 1}">进口</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <select name="state" id="state">
                            <option value="">请选择设备类型</option>
                            <option value="1" th:selected="${qrCode.state == 1}">可用</option>
                            <option value="0" th:selected="${qrCode.state == 0}">不可用</option>
                        </select>
                    </div>
                </div>


                <div class="layui-form-item">
                    <div style="text-align: center;margin-top: 20px">
                        <button  onclick="update()" class="layui-btn layui-btn-normal" >提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/shop/qrcode/detail.js}"></script>
</body>
</html>
